home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
code_cnt.zip
/
README
< prev
Wrap
Text File
|
1995-05-01
|
4KB
|
107 lines
Code Counting Utility (ln) (c) 1995 - by Russ Vanderpool - Freeware
Overview
--------
This application does what it says. Namely, it counts lines of code.
This tool was initially, very quickly written, to count lines of code
for a Microsoft(c) Visual C++ application that I was writing.
While line counting tools are VERY easy to write, an attempt was made
to create one with a half-decent interface. Additionally, this tool
also provides the following functionality:
-- Ability to count groups of files (for example, all *.h files,
resource files, etc.)
-- Ability to filter out specific files from the group of files
that you wish to count. (For example, in my project, I use
the "tabview.cpp" file. Obviously I did not write this, and did
not want this included in the number of lines that I had written.)
-- Also counts, and provides totals, for white space lines,
comments, and of course lines of actual code.
The code counting algorithm classifies lines starting with "//". and
block comments "/*", any comments in-between, "*/", as comment lines.
White space lines are those lines containing only spaces and the EOL
character.
Prior to determining whether a line in a file is a comment, white space,
or a line of code, all spaces are stripped from the beginning and end,
of the line.
This is a Windows 3.1 16-bit application.
Usage
------
File Menu:
----------
"Select Source Directory... Ctrl-S" - selects the directory that
contains the source files you wish to count.
"Count Source Lines Ctrl-N" - counts the source code/comments/white
space, of those files that are listed in the three list boxes.
Main Window Buttons:
--------------------
"Select Directory" - selects the directory that contains the source
files that you wish to count.
"Populate Lists" - fills in the three list boxes with the file
names containing the file extensions that are selected in the
combo boxes above each of the three list boxes. (based on the
directory that is specified in the "Code Directory" list box.)
">>" - initiates the line counting algorithm on the files that are
listed in the list boxes
"Remove Highlighted Files" - removes the highlighted files names,
if any, from the three list boxes. (Can be used to filter
out file names that you do not wish to count)
Results
-------
Totals are given for all the files in each of the three list boxes.
Additionally, a grand total is then generated based on the totals
of the three list boxes (if any).
If this utility is of any use, please drop me a note. Also, if you
have any suggestions/bug problems, please report them to:
rvanderp@lynx.northeastern.edu
Depending on my work schedule, I'll try to look into any problems/suggestions
that you might have.
Installation
------------
After downloading the code_cnt.zip archive, unpacking this archive
will create the following two files:
ln.exe
README (this file)
The only other requirement that must be fulfilled, is that you have
the CTL3D.DLL installed in your windows system directory.
For Example: c:\windows\system\ctl3d.dll
That's it... Do what you want from here.
Disclaimer
----------
Code Counting Utility (ln) is supplied as a Freeware utility/application.
The author offers no warranty as to the soundness of this utility/application,
and accepts no liability for any loss or damage incurred by its use. This
is not a supported product/utility/application.
You are free to distribute this tool, provided that you do not charge any
money for its distribution. Additionally, this README must be included.
With that said, phew, comments and suggestions are always welcome. If
enough interest and suggestions are shown, I'll try to improve this utility.
Kind Regards,
Russ Vanderpool
rvanderp@lynx.northeastern.edu